<template>
  <div>
    <Topnav titleTExt="我的收藏" />
    <PostItem v-for="item in stars" :key="item.id" :item="item" />
  </div>
</template>

<script>
import Topnav from "@/components/Topnav";
import PostItem from "@/components/PostItem";
export default {
  data() {
    return {
      stars: [],
    };
  },
  components: {
    Topnav,
    PostItem,
  },
  created() {
    this.$axios({
      url: "/user_star",
    }).then((res) => {
      console.log(res);
      const { data } = res.data;
      this.stars = data;
    });
  },
};
</script>

<style></style>
